﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{

    class Area
    {
        private double _long;
        private double _wide;
        private double _radius;
        public double Long { get; set; }
        public double Wide { get; set; }
        public double Radius { get; set; }

        public void calculate(double Long, double Wide)
        {

            Console.WriteLine("长方形的面积为" + Long * Wide);
        }

        public void calculate(double R)
        {

            Console.WriteLine("这个圆的面积为" + (R * R) * 3.14);
        }

        public Area(double lo, double wide)
        {
            this.Long = lo;
            this.Wide = wide;
        }
        public Area()
        { }

    }   

}
